package com.example.mongoreactive.respository;

import com.example.mongoreactive.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Mono;

public interface UserRepository extends ReactiveMongoRepository<User, String> {
    // 可以定义自定义查询方法
    Mono<User> findByUsername(String username);
}
